package com.adkfp.service;

import java.util.List;

import com.adkfp.action.ADKControllerAction;
import com.adkfp.bean.ADKAccessLogBean;
import com.adkfp.bean.ADKControllerBean;

public interface IADKControllerService {

	public List<ADKControllerBean> findByCondition(ADKControllerBean bean);//查询
	public long findByConditionCount(ADKControllerBean bean);//查询条数
	public void insert(ADKControllerBean bean);//增加控制器
	public ADKControllerBean findById(int id);//修改（查找id）
	public void delete(int id);//删除
	public void update(ADKControllerBean bean);//修改
	List<ADKControllerBean> afindByCondition(ADKControllerBean bean);//根据bean里面的条件(非空)查询所有记录
	long afindByConditionCount(ADKControllerBean bean);//根据bean里面的条件(非空)查询所有记录条数
	public ADKControllerBean finduseridById(Integer ctrlAddr);//通过autoid查找userid

	//用于权限组设置-门权限
	public List<ADKControllerBean> ufindByCondition(ADKControllerBean bean);
	public long ufindByConditionCount(ADKControllerBean bean);
	public int selectMax();
	//查询door和controller所有数据（FMY）
	public ADKControllerBean findByIdToo(int id);
	//增加门权限(@C)
	void insertDoorPowerGroup(Integer NetGroopID,Integer GroupID,Integer SubPointID, Integer CtrlAddr,Integer DoorAddr,Integer DoorTimeItemID);

}
